<template>
	<view class="container">
		<view>你好呀</view>
		<image :src="stuPhoto" style="border-radius: 50%;width: 100px;height: 100px;"></image>
		<uni-card title="个人信息展示">
			<view>学号:{{stuNumber}}</view>
			<view>姓名:{{stuName}}</view>
			<view>性别:{{stuSex}}</view>
			<view>所在学院:{{stuCollege}}</view>
			<view>专业:{{stuMajorName}}</view>
			<view>QQ:{{stuQQ}}</view>
			<view>WeChat:{{stuWechat}}</view>
			<view>手机号:{{stuPhone}}</view>
		</uni-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				stuPhoto:'',
				stuNumber:'',
				stuName:'',
				stuSex:'',
				stuCollege:'',
				stuMajorName:'',
				stuQQ:'',
				stuWechat:'',
				stuPhone:''
			}
			
		},
		onShow() {
			var _this=this;
			uni.request({
				url:"http://localhost:9000/selectStudentInfoByStuNumber",
				data:{
					"stuNumber":'20181008093'
				},
				method:'GET',
				dataType:'json',
				complete(res) {
					console.log(res.data)
					_this.stuPhoto=res.data.stuPhoto
					_this.stuNumber=res.data.stuId
					_this.stuName=res.data.stuName
					_this.stuSex=res.data.stuSex
					_this.stuCollege=res.data.stuCollegeName
					_this.stuMajorName=res.data.stuMajorName
					_this.stuPhone=res.data.stuPhone
					_this.stuWechat=res.data.stuWechat
					_this.stuQQ=res.data.stuQQ
				}
				
			})
		},
		
		methods: {
			
		}
	}
</script>

<style>

</style>
